#include "ArrUtils.h"
#include<iostream>
using namespace std;

void ArrUtils::swap(int* arr, int i, int j)
{
    int temp = arr[i];
    arr[i] = arr[j];
    arr[j] = temp;
}

void ArrUtils::printArr(int* arr, int size)
{
    cout << "Arr: { ";
    for (int i = 0; i < size; i++) {
        if (i == 0) {
            cout << arr[i];
        }
        else {
            cout << ", " << arr[i];
        }
    }

    cout << " }" << endl;
}